/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication2;

import java.util.ArrayList;

/**
 *
 * @author Leonardo
 */
public class JavaApplication2 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws InterruptedException {
        LeitorDeEntrada buf = new LeitorDeEntrada("C:\\Temp\\arquivoDeEntrada.txt");
        Processo p;
        ArrayList<Processo> processos = new ArrayList<Processo>();
        while ((p = buf.getProcesso()) != null)
        {
            processos.add(p);
        }        
        buf.OnDispose();
        Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
        Escalonador e = new Escalonador(processos);
        e.start();
    }
}
